/*
 * Copyright (c) 2011 Jean-Marc Perronne
 * Ensisa, 12 rue des Freres Lumieres, F-68093 Mulhouse cedex
 * All rights reserved.
 *
 * The copyright of this software is owned by Werner Randelshofer. 
 * You may not use, copy or modify this software, except in  
 * accordance with the license agreement you entered into with  
 * Jean-Marc Perronne. For details see accompanying license terms. 
 */

package fr.uha.ensisa.jmp.drone.input.progressive.connexion_3d;

import fr.uha.ensisa.jmp.connexion_3d.Event;
import fr.uha.ensisa.jmp.drone.at_commands.AtCommand;
import fr.uha.ensisa.jmp.drone.at_commands.AtCommands;

public class TakeOffLandHandler extends MouseHandler{

	public TakeOffLandHandler(int mouseId, int productId,MouseAdapter inputAdapter) 
	{
		super(mouseId, productId, inputAdapter);
	}
	
	protected AtCommand makeCommand(Event e)
	{
		if (e.buttons[0])return AtCommands.LAND;
		else if (e.buttons[1])return AtCommands.TAKE_OFF;
		else return super.makeCommand(e);
	}
}
